<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>


<!--main-->
<<div class="w100p">
    	<div class="w930 mg">
        	<div class="clearfix mg_s3">
            
            	<!-- left-->
            	<div class="l_box">
                	<h3 class="menu_tit">
                    	<div class="pic clearfix"><img src="<?php echo IMG_PATH;?>title_1.gif" class="block fr"></div>
                        <div class="tit">
							<?php if($CATEGORYS[$catid][parentid]==0) { ?>
								<?php echo $CATEGORYS[$catid]['catname'];?>
							<?php } elseif ($CATEGORYS[$CATEGORYS[$catid][parentid]][parentid] == 0) { ?>
								<?php echo $CATEGORYS[$CATEGORYS[$catid]['parentid']]['catname'];?>
							<?php } else { ?>
								<?php echo $CATEGORYS[$CATEGORYS[$CATEGORYS[$catid]['parentid']]['parentid']]['catname'];?>
							<?php } ?>
						</div>
                    </h3>
                	<ul class="submenu">
						<?php if($CATEGORYS[$catid][parentid]==0) { ?>
								
						<?php } elseif ($CATEGORYS[$CATEGORYS[$catid][parentid]][parentid] == 0) { ?>
							<?php $n=1;if(is_array(subcat($CATEGORYS[$catid][parentid]))) foreach(subcat($CATEGORYS[$catid][parentid]) AS $v) { ?>
								<li>
									<a href="<?php echo $v['url'];?>" class="<?php if($v[catid]==$catid) { ?>current<?php } ?> pl25 far"><?php echo $v['catname'];?></a>
								</li>
							<?php $n++;}unset($n); ?>
							
						<?php } else { ?>
							<?php $n=1;if(is_array(subcat($CATEGORYS[$CATEGORYS[$catid][parentid]][parentid]))) foreach(subcat($CATEGORYS[$CATEGORYS[$catid][parentid]][parentid]) AS $v) { ?>
								<li>
									<a href="<?php if($v[child] == 0) { ?><?php echo $v['url'];?><?php } else { ?>javascript:;<?php } ?>" class="<?php if($CATEGORYS[$catid][parentid] == $v[catid]) { ?>current<?php } ?> pl25 far"><?php echo $v['catname'];?></a>
									<div class="child_menu">
										<?php $n=1;if(is_array(subcat($v[catid]))) foreach(subcat($v[catid]) AS $sub) { ?>
											<a href="<?php echo $sub['url'];?>" class="pl25
											<?php if($sub[catid]==$catid) { ?>on<?php } ?>
											"><?php echo $sub['catname'];?></a>
											
										<?php $n++;}unset($n); ?>
									</div>
								</li>
							<?php $n++;}unset($n); ?>
						<?php } ?>
						
						
					</ul>
                </div>
                <!-- left--end-->
                
                <!-- right-->
                <div class="r_box">
                	<h3 class="title"><?php echo $CATEGORYS[$catid]['catname'];?></h3>
                    <div class="list_box">
                    	<ul class="list">
							<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=23c6cdcd3a9d90e2419ef79d26f8b14f&action=lists&catid=%24catid&num=7&order=updatetime+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 7;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'order'=>'updatetime DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'order'=>'updatetime DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
								<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
								<li>
									<span class="fr mr20"><?php echo date('Y-m-d H:i:s',$r[updatetime]);?></span>
									<a  href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a>
								</li>
								<?php $n++;}unset($n); ?>
							<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                        	
                           
                        </ul>
                        <div id="pages" class="fanye" style="padding:0 0 0 250px; height:30px;"><?php echo $pages;?></div>
                       
                        
                    </div>
                </div>
                <!-- right--end-->
                
            </div>
        </div>	
    </div>
<?php include template("content","footer"); ?>